# -*- coding: utf-8 -*-
# @Time     : 2020/8/1 18:07

import asyncio
import time

now = lambda: time.time()


async def small(n2):
    print(f'small/{n2} --> {now()}')


async def big(n1):
    print(f'big/{n1} --> {now()}')
    small_tasks = [small(j) for j in range(10)]
    await asyncio.wait(small_tasks)


async def run():
    big_tasks = [big(j) for j in range(10)]
    await asyncio.wait(big_tasks)


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(run())
